package com.vat.service.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author whh
 * @Date: 2023/04/15/ 2:37
 * @description
 */
@Controller
public class HelloController {
    private static Logger LOGGER  = LoggerFactory.getLogger(HelloController.class);

    @RequestMapping("/hello")
    @ResponseBody
    public String sayHello(String name){
        LOGGER.info("hello....");
        System.out.println("hello "+name);
        return "123";
    }
}
